package com.bRoom.dao;

import com.bRoom.pojo.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomMapper {
    int deleteByPrimaryKey(Integer roomId);

    int insert(Room record);

    int insertSelective(Room record);

    Room selectByPrimaryKey(Integer roomId);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);

    int updateRoomStatus(@Param("roomId") Integer roomId,@Param("roomStatus") Integer roomStatus);

    Room roomDetail(Integer roomId);

    List<Room>  selectRoomList();

    int checkRoomNum(String roomNum);

    List<Room> selectEarch(String roonName);
}